package cn.lysj.framework.customer.domain;

import cn.lysj.framework.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.math.BigDecimal;

/**
 * @author zwj
 * @description VIP用户
 * @create 2019-01-15 15:43:50
 **/
@Data
@Entity
@EqualsAndHashCode(callSuper=true)
public class CustomerVip extends BaseEntity {

    private String storeId;     //商户Id
    private String customerInfoId;  //用户Id
    @Column(columnDefinition = "decimal(10,2)")
    private BigDecimal integral;//积分
    private String birthdayGetCouponRecord;//生日领取标识字段 记录年份 例如1997 用于识别用户生日是否领取过券
    private String newVipGetCouponRecord;  //会员领取标识字段 记录年份         用户识别用户是否领取过会员券

    public CustomerVip() {
    }


    public CustomerVip(String storeId, String customerInfoId) {
        this.storeId = storeId;
        this.customerInfoId = customerInfoId;
        this.integral = BigDecimal.ZERO;
    }


}
